/*
 *  big_endian_tool.h
 *
 *  Copyright (C) 2011  Jason<linux8192@gmail.com>
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef _BIG_ENDIAN_TOOL_H_
#define _BIG_ENDIAN_TOOL_H_

u8 read_u8(const char *buf);
u4 read_u4(const char *buf);
u2 read_u2(const char *buf);
u1 read_u1(const char *buf);

u8 read_u8_and_move_cur(char **buf);
u4 read_u4_and_move_cur(char **buf);
u2 read_u2_and_move_cur(char **buf);
u1 read_u1_and_move_cur(char **buf);

#endif /* _BIG_ENDIAN_TOOL_H_ */
